﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Admin Console</title>
<%@page import="java.util.*" %>
<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
    Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<link href="/css/Adminconsole/Main.css" rel="stylesheet" />
<link href="/css/custom/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" />
<link href="/css/Adminconsole/dialog.css" rel="stylesheet" />
<link href="/css/custom/loading.css" rel="stylesheet" />
<link href="/css/components/blocked/popup/popup.css" rel="stylesheet" />
<script src="/js/jquery-1.8.3.min.js"></script>
<script src="/js/sharedData.js"></script>
<script src="/js/loading.js"></script>
<script src="/js/simpleservice.js"></script>
<script src="/js/components/selectDropDown.js"></script>

<script src="/js/adminconsole/General/general.js"></script>
<script src="/js/adminconsole/AdminShareData.js"></script>
<script src="/js/adminconsole/GenericLogic/GennerlicLogic.js"></script>
<jsp:include page="/language.jsp" flush="true" />
<jsp:include page="/adminconsole/language.jsp" flush="true" />

</head>

	<body>
		<header>
			<div class="brand">
				<div name="hotelName"><h2>iHotel</h2></div>
				<div name="pageName">Admin Console</div>
					<jsp:include page="/adminconsole/menu.jsp" flush="true" />
			</div>
		</header>
		<div class="main">
			<div class="breadcrumb">
				<% out.print(resource.getString("AdminConsole.Page.Tax"));%>
			</div>
			<div class="destitle">
				<% out.print(resource.getString("AdminConsole.Page.Tax.suggest"));%>
			</div>
			<div class="content">
				<table width="80%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td>
							<table id="globalsetting" style="width:95%;margin-left:2.5%" border="0" cellpadding="4" cellspacing="1" class="tablevaligntop">
								<tr>
									<td colspan="2" style="background-color:#CCC;border:#999999 1px solid">&nbsp;<span class="headtitle"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.gobalsetting"));%></span></td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.defaultlanguae"));%></td>
									<td style="padding-left:10px"><span id="language"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdownlanguage()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%></span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.defaultcurrency"));%></td>
									<td style="padding-left:10px"><span id="currency"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdowncurrency()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></br> <span>
									<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.symbol"));%>
									</span><span name="symbol"></span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.financialyear"));%></td>
									<td style="padding-left:10px"><div id="financialform"><span id="financialyearfrom"></span>&nbsp;<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.to"));%>&nbsp;<span id="financialyearto"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showfinancialyearform()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></div></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.currencyconvert"));%></td>
									<td style="padding-left:10px"><span id="currencyconvert"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdowncurrencyconvert()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></br>
									<span >
									<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.conversioninrealtime"));%>
									</span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.currencyconvertmagin"));%></td>
									<td style="padding-left:10px"><span id="currencymagin"></span>&nbsp;%&nbsp;&nbsp;&nbsp;<span class="link" onClick="fillSimpleTextEdit($('#currencymagin'),false,settext,'width:50px')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span>
                                    </td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.decimalplace"));%></td>
									<td style="padding-left:10px"><span id="decimalplaces"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="fillSimpleNumberDropdown($('#decimalplaces'),0,2,seted,'0','width:50px')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.includetax"));%></td>
									<td style="padding-left:10px"><span id="exclusivetax"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdownyesno('exclusivetax')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.taxbreakup"));%></td>
									<td style="padding-left:10px"><span id="taxbreakup"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdownyesno('taxbreakup')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.accountfoliodate"));%></td>
									<td style="padding-left:10px"><span id="foliodate"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdownyesno('foliodate')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
									<td ></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.dateformat"));%></td>
									<td ><span id="dateformat" ></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdowndateformat()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.timezone"));%></td>
									<td ><span id="gennerlic_timezone-dropdown"></span>&nbsp;&nbsp;&nbsp;<span class="link" name="chick_to_change_time_zone"><%out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%></span></br> <span >
									<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.currenttime"));%>
									</span><span id="nowdate">-</span></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
									<td ></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.timeformat"));%></td>
									<td><span id="timeformat"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdowntimeformat()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.checkintime"));%></td>
									<td ><div id="divcheckintime"><span id="checkintime"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showtimefrom('divcheckintime')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></div>
                                    </td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.checkouttime"));%></td>
									<td><div id="divcheckouttime"><span id="checkouttime"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showtimefrom('divcheckouttime')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></div></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
									<td ></td>
								</tr>
								<tr>
									<td class="boldrow" style="text-align:left" colspan="2"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.guestlessthan"));%> <span id="childold">-</span> <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.yearsofage"));%> <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.willbechild"));%>&nbsp;&nbsp;&nbsp;<span class="link" onClick="fillSimpleNumberDropdown($('#childold'),0,16,seted,'0','width:50px')">
									  <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
									<td ></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.commission"));%></td>
									<td ><span id="commission">-</span>&nbsp;%&nbsp;&nbsp;&nbsp;<span class="link" onClick="fillSimpleTextEdit($('#commission'),false,settext,'width:50px')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td class="boldrow"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.corporatediscount"));%> </td>
									<td ><span id="discount">-</span>&nbsp;%&nbsp;&nbsp;&nbsp;<span class="link" onClick="fillSimpleTextEdit($('#discount'),false,settext,'width:50px');"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
									<td ></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
									<td ></td>
								</tr>
							</table>

						</td>
					</tr>
					<tr>
						<td>
							<table id="globalsetting" style="width:95%;margin-left:2.5%" border="0" cellpadding="3" cellspacing="1">
								<tr>
									<td colspan="2" style="background-color:#CCC;border:#999999 1px solid">&nbsp;&nbsp;<span class="headtitle"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.nightaudit"));%>
									</span></td>
								</tr>
								<tr>
									<td colspan="2"><span style="float:left"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.nightaudit"));%>&nbsp;<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.willnothappen"));%>&nbsp;</span>
									  <span id="spanshownightaudit"><span id="shownightaudit">2</span>&nbsp;<span class="link" onClick="showtimefrom('spanshownightaudit')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%></span></span></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
									<td ></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
									<td ></td>
									</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table id="globalsetting" style="width:95%;margin-left:2.5%" border="0" cellpadding="3" cellspacing="1">
								<tr>
									<td style="background-color:#CCC;border:#999999 1px solid">&nbsp;&nbsp;<span class="headtitle">
									  <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.housekeepingsetting"));%>
									</span></td>
								</tr>
								<tr>
									<td class="textleft"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.setoccupied"));%> &nbsp;&nbsp;<span id="occupied"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdowncleaningstatus('occupied')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td class="textleft"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.setvacant"));%>  <span id="vacant"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdowncleaningstatus('vacant')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td class="textleft"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.setcheckout"));%> <span id="checkedoutroom"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="showdropdowncleaningstatus('checkedoutroom')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
								</tr>
								<tr>
									<td >&nbsp;</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table id="globalsetting" style="width:95%;margin-left:2.5%" border="0" cellpadding="3" cellspacing="1">
								<tr>
									<td style="background-color:#CCC;border:#999999 1px solid"> &nbsp;<span class="headtitle">
									  <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.webpolicy"));%>
									</span></td>
								</tr>
								<tr>
									<td class="textleft"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.forwebreserv"));%>&nbsp;
									  <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.requiresdeposit"));%>&nbsp;0.00&nbsp;<% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.bookingamountcharge"));%> &nbsp;&nbsp;&nbsp;<span class="link"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table id="globalsetting" style="width:95%;margin-left:2.5%" border="0" cellpadding="3" cellspacing="1">
								<tr>
									<td colspan="2" style="background-color:#CCC;border:#999999 1px solid">&nbsp;&nbsp;<span class="headtitle"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.earlypolicy"));%></span></td>
								</tr>
								<tr>
									<td class="textleft earlytd"><div id="earlycheckin"><span id="earlycheckin_1"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.forearlycheckin"));%></span>
								    <span id="earlycheckin_timeamount">-</span> <span id="earlycheckin_timeunit">-</span>&nbsp;<span id="earlycheckin_2"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.beforecheckin"));%></span>&nbsp;<span id="earlycheckin_chargeamount">-</span>&nbsp;<span id="earlycheckin_chargeunit">-</span>&nbsp;&nbsp;<span class="link" onClick="earlypolicyform('earlycheckin')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
							</span></div></td>
							<td >&nbsp;</td>
								</tr>
								<tr>
									<td class="textleft earlytd" ><div id="earlycheckout"><span id="earlycheckout_1"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.forearlycheckout"));%></span>
								     <span id="earlycheckout_timeamount">-</span>&nbsp;<span id="earlycheckout_timeunit">-</span>
								      <span id="earlycheckout_2"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.beforecheckout"));%></span>
							         <span id="earlycheckout_chargeamount">- </span>&nbsp;<span id="earlycheckout_chargeunit">-</span>&nbsp;<span class="link" onClick="earlypolicyform('earlycheckout')">
							        <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
							        </span>&nbsp;</div></td>
							<td >&nbsp;</td>
								</tr>
								<tr>
							<td class="textleft earlytd" ><div id="latecheckout"><span id="latecheckout_1"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.forlatecheckout"));%></span>
							   <span id="latecheckout_timeamount">-</span>&nbsp;<span id="latecheckout_timeunit">-</span> 
							    <span id="latecheckout_2"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.aftercheckout"));%></span>
						       <span id="latecheckout_chargeamount">-</span>&nbsp;<span id="latecheckout_chargeunit">-</span>&nbsp;&nbsp;<span class="link" onClick="earlypolicyform('latecheckout')"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
							</span></div></td>
							<td >&nbsp;</td>
						</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table id="globalsetting" style="width:95%;margin-left:2.5%" border="0" cellpadding="3" cellspacing="1">
								<tr>
									<td style="background-color:#CCC;border:#999999 1px solid"> &nbsp;
								   <span class="headtitle"> <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.noshowpolicy"));%></span></td>
								</tr>
								<tr>
									<td style="text-align:center"><div id="noshowpolicy" style="text-align:center;"><span >
								    <% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.chargenoshow"));%>
									</span><span id="noshowtime">3 </span><span id="noshowtimeunit">-</span><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.after"));%><span id="afterthis">-</span> <span id="language"></span>&nbsp;&nbsp;&nbsp;<span class="link" onClick="noshowpolicyform()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></div></td>
								</tr>
								<tr>
									<td >&nbsp;</td>
								</tr>
                                <tr>
									<td style="text-align:center">
										<table style="width:100%">
                                        <tr>
                                        <td colspan="2" style="background-color:#CCC;border:#999999 1px solid">&nbsp;&nbsp;<span class="headtitle"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.setfront"));%></span></td>
                                        </tr>
                                        <tr>
                                        	<td colspan="2" style="text-align:left"> <span id="setcounterlist"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.counterlist"));%> : <span id="counterlist">Counter 1,Counter 2,Counter 3</span> <span class="link" onClick="SetCounterList()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></span></td>
                                        </tr>
                                        <tr>
                                        	<td colspan="2" style="text-align:left"><span id="setdefaultcounter"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.defaultcounter"));%> : <span id="defaultcounter">Counter 1</span> <span class="link" onClick="SetDefaultCounter()"><% out.print(resource.getString("AdminConsole.Page.General.DefaultsSettings.clicktochange"));%>
									</span></span></td>
                                        </tr>
                                        </table>
									</td>
					</tr>
							</table>
						</td>
					</tr>
                    <tr>
									<td style="text-align:center">&nbsp;
										
									</td>
								</tr>
                    <tr>
									<td style="text-align:center">
										<input type="button" class="addbtn" name="button" id="button" value="Save Change" onClick="savechange()">
										<input type="button" name="button2" id="button2" class="addbtn" value="Cancel">
									</td>
								</tr>
				</table>
			</div>
		</div>
        	<div id="BlankDialog" style="display:none; padding:5px 0 0 10px;"></div>
	<div id="loadingScreen"></div>
	<div name="dynamic" style="display:none"></div>
        <script>$(loadGeneral());</script>
	</body>
</html>